class BeerDetailsController < UIViewController
  def loadView
    self.view = UIWebView.new
  end

  def viewWillAppear(animated)
    navigationController.setNavigationBarHidden(false, animated:true)
  end


  def showDetailsForBeer(beer)
    puts "#{beer.title} -> #{beer.url}"
    navigationItem.title = beer.title
    request = NSURLRequest.requestWithURL(beer.url)
    view.loadRequest(request)
  end
end